import { Module } from '@nestjs/common';
import { TeamsController } from './teams.controller';
import { TeamsService } from './teams.service';
import { MongooseModule } from '@nestjs/mongoose';
import { CommentSchema } from '../schema/Comment.schema';
import { IssueSchema } from '../schema/Issue.schema';

@Module({
  imports: [
    MongooseModule.forFeature([
      { name: 'comment', schema: CommentSchema },
      { name: 'issue', schema: IssueSchema },
    ]),
  ],
  providers: [TeamsService],
  controllers: [TeamsController],
  exports: [TeamsService],
})
export class TeamsModule {}
